#include "uart_app.h"

uint8_t rx_dat[30];


uint8_t show_old_mode = 0;
void UART_proc(void)
{
    if (show_old_mode == 1)
    {
        if(show_mode==0)
        {
            printf("New RTC:%2d:%2d:%2d\r\n",time_stop.Hours,time_stop.Minutes,time_stop.Seconds);
            show_old_mode = 0;
        }
    }
    else if(show_old_mode == 2)
    {
        if (show_mode == 0)
        {
            printf("New Alarm:%2d:%2d:%2d\r\n", time_alarm.Hours, time_alarm.Minutes, time_alarm.Seconds);
            show_old_mode = 0;
        }
    }
    else if(show_old_mode == 0)
    {
        if(show_mode != show_old_mode)
        {
            show_old_mode = show_mode;
        }
    }
}


void HAL_UARTEx_RxEventCallback(UART_HandleTypeDef *huart, uint16_t Size)
{

}
